/*
 * @Date: 2021:11:30 15:42:07
 * @LastEditors: 春贰
 * @Desc: 
 * @LastEditTime: 2022-10-11 09:10:47
 * @FilePath: \web\src\core\route\module\main-routes.js
 */
/// 动态路由
import Layout from "@/core/layout/index.vue"; 
import { module } from '@/core/tools/module'  
const modulesFiles = import.meta.globEager("@/app/route/*.js") 
const genImport = module(modulesFiles) 
export default {
  //这里的key需要和数据库name字段对应，且动态路由的key必选带"/",权限里的name可以不带"/"
  Layout,  
  '/dashboard/console': () => import('@/app/view/dashboard/console.vue'), 
  '/user/list': () => import('@/core/view/system/user/index.vue'), 
  '/role/list': () => import('@/core/view/system/role/index.vue'),
  '/permission/tree': () => import('@/core/view/system/permission/index.vue'),
  '/databackup/list': () => import('@/core/view/system/databackup/index.vue'),
  '/record/list': () => import('@/core/view/system/record/index.vue'),
  '/config/list': () => import('@/core/view/system/config/index.vue'), 
  '/file/list': () => import('@/core/view/system/file/index.vue'), 
  '/autocode/index': () => import('@/core/view/autocode/index.vue'), 
  //自动生成
  ...genImport, 
}
